package com.hl.sfzy.controller.wxwappController;

import com.hl.sfzy.entity.wxwapp.CourseOnline;
import com.hl.sfzy.service.wxwappService.CourseOnlineService;
import com.hl.sfzy.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @className: CourseOnlineController
 * @author: WXW
 * @date: 2024/9/5 19:58
 * @Version: 1.0
 * @description:
 */
@RestController
@RequestMapping("/courseOnline")
public class CourseOnlineController {
    @Autowired
    private CourseOnlineService courseOnlineService;

    @GetMapping("/findAllCourseOnline")
    public R findAllCourseOnline(Integer PageNum,Integer PageSize){
        List<CourseOnline> courseOnlines = courseOnlineService.selectOnlineCourse(PageNum, PageSize);
        return R.success(courseOnlines);
    }
}
